package springapp.domain;

import java.io.Serializable;

/**
 * @author Ann Raboschuk
 */
public class Product implements Serializable
{
   private static final long serialVersionUID = 1L;
   private int id;
   private String description;
   private Double price;

   public void setId(int i)
   {
      id = i;
   }

   public int getId()
   {
      return id;
   }

   public String getDescription()
   {
      return description;
   }

   public void setDescription(String description)
   {
      this.description = description;
   }

   public Double getPrice()
   {
      return price;
   }

   public void setPrice(Double price)
   {
      this.price = price;
   }

   public String toString()
   {
      StringBuffer buffer = new StringBuffer();
      buffer.append("Description: " + description + ";");
      buffer.append("Price: " + price);
      return buffer.toString();
   }
}
